﻿package plugin.social
{
    import com.core.*;
    import com.sh.game.control.*;
    import plugin.social.consts.*;

    public class SocialControl extends ModuleControl
    {

        public function SocialControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "social")
            {
                if (param2.property == "sociallist")
                {
                    this.target.updateMsg(CMDSocial.GET_SOCIALLIST, param2.newvalue);
                }
                else if (param2.property == "applyfor")
                {
                }
                else if (param2.property == "changelist")
                {
                    this.target.updateMsg(999, param2.newvalue);
                }
                else if (param2.property == "getbatterapply")
                {
                }
                else if (param2.property == "itemClick")
                {
                }
                else if (param2.property == "agreebattler")
                {
                }
                else if (param2.property == "refusebattler")
                {
                }
                else if (param2.property == "showzhan")
                {
                }
                else if (param2.property == "changedata")
                {
                }
                else if (param2.property == "updateNear")
                {
                }
                else if (param2.property == "getnewdata")
                {
                }
                else if (param2.property == "showNearMune")
                {
                }
                else if (param2.property == "upAndDown")
                {
                    this.target.updateMsg(CMDSocial.UpAndDown, param2.newvalue);
                }
            }
            else if (param1.getName() == "zone")
            {
                if (param2.property == "viewOthers")
                {
                }
            }
            return;
        }// end function

        public function applyfor(param1:Object) : void
        {
            this.target.getApply(param1);
            return;
        }// end function

        public function agree(param1:Object) : void
        {
            this.target.AgreeApply(param1);
            return;
        }// end function

        public function refuse(param1:Object) : void
        {
            return;
        }// end function

    }
}
